package com.example.demo.com.java8.lambda;

import lombok.Data;

/**
 * 苹果实体类
 * @author chengfei5
 * @date 2018/8/20
 */
@Data
public class Apple {
    /**
     * 重量
     */
    private Integer weight;
    /**
     * 颜色
     */
    private String color;

    public Apple(Integer weight, String color) {
        this.weight = weight;
        this.color = color;
    }

    public Apple(Integer weight) {
        this.weight = weight;
    }

    public Apple() {
    }
}
